package com.xuecheng.content.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value="AddCourseDto",description="添加课程的入参")
public class CourseReqDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("课程id，新增时不用传")
    private Long id;

    @ApiModelProperty("收费类型：收费、免费")
    @NotNull(message="收费类型不能为null")
    private String charge;

    @ApiModelProperty("课程简介")
    private String description;

    @ApiModelProperty("课程等级")
    @NotNull
    private String grade;

    @ApiModelProperty("课程大分类")
    @NotNull
    private String mt;

    @ApiModelProperty("课程名称")
    @NotNull
    private String name;

    @ApiModelProperty("课程目标")
    private String objectives;

    @ApiModelProperty("课程原价")
    private Float originalPrice;

    @ApiModelProperty("咨询电话")
    private String phone;

    @ApiModelProperty("课程封面图片路径")
    private String pic;

    @ApiModelProperty("课程现价")
    private Float price;

    @ApiModelProperty("咨询qq")
    private String qq;

    @ApiModelProperty("课程小分类")
    @NotNull
    private String st;

    @ApiModelProperty("课程标签")
    private String tags;

    @ApiModelProperty("课程教学方式：直播、录播")
    private String teachmode;

    @ApiModelProperty("课程分类代码集合")
    private List<String> uiCategoryTreeSelected;

    @ApiModelProperty("课程适用人群")
    @NotNull
    private String users;

    @ApiModelProperty("课程有效期天数")
    @NotNull
    private Integer validDays;

    @ApiModelProperty("咨询微信")
    private String wechat;
}
